package com.rop.znyx.user;

import com.rop.znyx.common.result.Result;
import com.rop.znyx.vo.user.LeaderAddressVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created with IntelliJ IDEA
 * User: Rop
 * Date: 2023/7/19
 * Time: 14:55
 * Description:
 */

@FeignClient("service-user")
public interface UserFeignClient {

    @ApiOperation("提货点地址信息")
    @GetMapping("api/user/leader/inner/getUserAddressByUserId/{userId}")
    Result<LeaderAddressVo> getUserAddressByUserId(@PathVariable("userId") Long userId);
}
